#include "Vec3.h"

#include "Color.h"

Color::Color(const float& r, const float& g, const float& b, const float& a):
	r(r), g(g), b(b), a(a){
}
Color::Color(const float& r, const float& g, const float& b):
	r(r), g(g), b(b), a(1.0f){
}

/*
Color::Color(const float& r, const float& g, const float& b){
	_to_destroy = true;
	v = new float[4];
	v[0] = r;
	v[1] = g;
	v[2] = b;
	v[3] = 1;
}

#ifdef _NP_POINTER_INJECT
Color::Color(float* p){
	v = p;
}
#endif

Color::~Color(){
#ifdef _NP_POINTER_INJECT
	if (_to_destroy){
#endif
		delete[] v;
#ifdef _NP_POINTER_INJECT
	}
#endif
}
//*/
